Skip to content

fix(execution): keep a run's record until its folder is gone - #779

Merged
harenome merged 1 commit into
ThinkFlowLab:mainfrom
harenome:fix/partial-delete
Dec 3, 2026
Merged

harenome merged 1 commit into
ThinkFlowLab:mainfrom
harenome:fix/partial-delete

Conversation

@harenome

@harenome harenome commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Closes #767

What

  • Delete launch refuses a run up front when its folder, or the runs folder, does not let entries go.
  • Otherwise: subfolders, other files, plan.json, run.json, the folder.
  • A file that cannot go: removed scripts are written back, byte for byte.
  • An entry gone since the listing counts as removed.
  • Refused part way: the record stays; the run restores, deletes again.
  • Files removed before the refusal (part of jobs/) are not restored; their judgements may stay.

Touches

  • app/nullius/execution.py: _remove_run, used by delete.
  • app/tests/test_run_delete.py: four refusals, a save completing.

Verified

  • On main: jobs/ read-only left only jobs/; Delete again said "r1 is not a run Nullius made".
  • New tests fail before the fix.
  • Suites, docs check.

Risk

Agents

  • Claude Code, Opus 5.5

@harenome
harenome marked this pull request as ready for review December 3, 2026 15:56
@github-actions github-actions Bot added the needs review Tests pass, no conflict, no verdict on its latest commit label Dec 3, 2026
@harenome
harenome merged commit 2a842a3 into ThinkFlowLab:main Dec 3, 2026
4 checks passed
@harenome
harenome deleted the fix/partial-delete branch December 3, 2026 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs review Tests pass, no conflict, no verdict on its latest commit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A Delete launch that fails part way removes run.json first and leaves a folder that blocks its name

1 participant